<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    function Student(name,age){
        this.name = name;
        this.age = age;
        this.fn = function(){
            console.log('需恶习');
        }
    }

    var zhangsan = new Student('张三',18);
    var lisi = new Student('李四',20);
    console.log('',zhangsan);
</script>